// 审核 表单加载配置
import departmentForm from '@/components/ivew_components/organization_form_container/department_form/index.vue'
import personalForm from '@/components/ivew_components/organization_form_container/personal_form/index.vue'

function buildStoreMethod(key:formInf.storeMethod):formInf.storeMethod{
    return key;
}

const  department:formInf.mod = {

    name: 'departmentForm',
    component: departmentForm,
    propsData: {
        data: {
            storePath: 'auditingStore/currentFormData',
            storeMethod: buildStoreMethod('state')
        },
        mods: {
            storePath: 'auditingStore/departmentMods',
            storeMethod: buildStoreMethod('getters')
        }
       
    },
    layout: {
        'grid-row': '1/2',
        'grid-column': '1/2'
    },
    style:{}
    
}

const  personal:formInf.mod = {

    name: 'personalForm',
    component: personalForm,
    propsData: {
        
        data: {
            storePath: 'auditingStore/currentFormData',
            storeMethod: buildStoreMethod('state')
        },

        mods: {
            storePath: 'auditingStore/personalMods',
            storeMethod: buildStoreMethod('getters')
        },
        
    },
    layout: {
        'grid-row': '1/2',
        'grid-column': '1/2'
    },
    style:{}
    
}


export {

    department,
    personal

    
}


